/*  1:   */ package tt.dz.web.controller.user;
/*  2:   */ 
/*  3:   */ import com.alibaba.fastjson.JSON;
/*  4:   */ import java.util.List;
/*  5:   */ import javax.annotation.Resource;
/*  6:   */ import javax.servlet.http.HttpServletRequest;
/*  7:   */ import org.springframework.stereotype.Controller;
/*  8:   */ import org.springframework.web.bind.annotation.RequestMapping;
/*  9:   */ import org.springframework.web.bind.annotation.ResponseBody;
/* 10:   */ import tt.dz.biz.service.user.OfflineIdentityCardHisService;
/* 11:   */ import tt.dz.common.JSONUtil;
/* 12:   */ import tt.dz.common.LogUtil;
/* 13:   */ import tt.dz.vo.OfflineIdentityCardHisVO;
/* 14:   */ import tt.dz.vo.ResponseModle;
/* 15:   */ import tt.dz.web.controller.BaseController;
/* 16:   */ 
/* 17:   */ @Controller
/* 18:   */ public class OfflineIdentityCardHisController
/* 19:   */   extends BaseController
/* 20:   */ {
/* 21:   */   @Resource(name="offlineIdentityCardHisService")
/* 22:   */   private OfflineIdentityCardHisService offlineIdentityCardHisService;
/* 23:   */   
/* 24:   */   @RequestMapping(value={"/queryOfflineIdentityCardHis"}, produces={"application/json;charset=UTF-8"})
/* 25:   */   @ResponseBody
/* 26:   */   public String queryOfflineIdentityCardHis(HttpServletRequest request)
/* 27:   */   {
/* 28:36 */     ResponseModle responseModle = null;
/* 29:   */     try
/* 30:   */     {
/* 31:38 */       String offlineIdentityCardHisJSONString = request.getParameter("offlineIdentityCardHis");
/* 32:   */       
/* 33:40 */       OfflineIdentityCardHisVO offlineIdentityCardHis = (OfflineIdentityCardHisVO)JSONUtil.parseObjectAsTimeFormat(offlineIdentityCardHisJSONString, OfflineIdentityCardHisVO.class);
/* 34:   */       
/* 35:   */ 
/* 36:   */ 
/* 37:44 */       List<OfflineIdentityCardHisVO> offlineIdentityCardHises = this.offlineIdentityCardHisService.getOfflineIdentityCardHises(offlineIdentityCardHis);
/* 38:45 */       responseModle = new ResponseModle("success", offlineIdentityCardHises);
/* 39:   */     }
/* 40:   */     catch (Exception e)
/* 41:   */     {
/* 42:47 */       LogUtil.error("根据传入条件查询卡操作的历史记录异常", e);
/* 43:48 */       responseModle = new ResponseModle("error", "根据传入条件查询卡操作的历史记录异常");
/* 44:   */     }
/* 45:51 */     return JSON.toJSONString(responseModle);
/* 46:   */   }
/* 47:   */ }


/* Location:           F:\work\pengyu\mainServer\WEB-INF\classes\
 * Qualified Name:     tt.dz.web.controller.user.OfflineIdentityCardHisController
 * JD-Core Version:    0.7.0.1
 */